import request from '@/api/request.js'

// 购物车列表(聚合页项目)
export async function getCartAll(params) {
	return request('/cart/list/all', params)
}

export async function getGoodsSkuInfo(params) {
	return request('/goods/getGoodsSkuInfo', params)
}

//删除购物车商品
export async function deleteGoods(params) {
	return request('/cart/delete', JSON.stringify(params), 'POST')
}

//修改商品数量
export async function editGoodsCart(params) {
	return request('/cart/update', JSON.stringify(params), 'POST')
}

export const handleUpdateMultipleGoodsAction = params => (
	request('/cart/update/mixedBatch', params, 'POST')
)

